//
//  JJRNFileOperation.h
//  ClaimPlatform_RN
//
//  Created by woshiku on 2018/8/22.
//  Copyright © 2018年 jj. All rights reserved.
//

#import <Foundation/Foundation.h>

#define  BUNDLE_VERSION_PLIST @"bundleVersion.plist"
#define  RNBUNDLEVERSIONKEY @"RNBundleVersion"

#define  RNHOTUPDATEFLODER  @"RnHotUpdateFloder"
#define  RNBUNDLEFLODERPRE  @"jj_rn_ios_"
#define  MAIN_JSBUNDLE  @"main.jsbundle"
#define  ASSETS       @"assets"
#define  BUNDLE_MD5_PLIST @"bundleMD5.plist"

#define  DOWNLOADRNBUNDLE  @"DownLoadRnBundle"
#define  BUNDLEZIP @"bundle.zip"

@interface JJRNFileOperation : NSObject
/**
 *获取本地存储的RNBundle版本信息文件
 */
+(NSString*)getLocalRNBundleFile;
/**
 *获取本地存储的RNBundle版本信息
 */
+(NSString*)getLocalRNBundleVersion;
/**
 *获取本地存储的RNBundleMD5文件
 */
+(NSString*)getLocalRNBundleMD5File;
/**
 *获取本地RNBUNDLE包对应的MD5值
 */
+(NSString*)getRNBundleMD5Value:(NSString*)rnVersion;
/**
 *存储对应RNBUNDLE包对应的MD5值
 */
+(void)storeRNBundleMD5ToFile:(NSString*)rnVersion MD5:(NSString*)md5;
/**
 *获取热更新文件存储的根目录
 */
+(NSString *)getBundleFloderPath;
/**
 *获取热更新下载临时目录
 */
+(NSString*)getRnBundleTempPath;
/**
 *删除本地文件
 */
+(void)deleteLocalFile:(NSString*)file;
/**
 *判断本地对应的文件是否存在
 */
+(BOOL)localFileIsExit:(NSString*)file;

/**
 *存储文件到本地
 */
+(void)storeFile:(NSMutableDictionary*)dic fileName:(NSString*)fileFullPath;
/**
 *移动文件夹
 */
+(BOOL)moveFile:(NSString*)currentPath DestiFile:(NSString*)toPath;
@end
